# 4.3.2 使用range()创建数字列表
squares = []
for value in range(1,11):
    # square = value ** 2
    # squares.append(square)
    squares.append(value**2)
print(squares)

# 4.3.3 对数字列表执行简单的统计计算
digits = [1,2,3,44,5,6,78,9,0,10]
print(min(digits))
print(max(digits))
print(sum(digits))

# 4.3.4 列表解析
squares = [value**2 for value in range(1,6)]
print(squares)